- /* sdfsf2sd.cpp by K.Tsuru */
- // function ID = 300 DRADIX
- /**********************************************
- SDouble and SFraction classes
- It provides the conversion SFraction-->SDouble
- ***********************************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- SDouble SFToSD(const SFraction& x){
- SDouble r, d;
- SFraction y(x);
- r = y.Num(); d = y.Den(); //call reduce(1)
- r = r/d;
- return r;
- }
sdfsf2sd.cpp : last modifiled at 2015/12/03 21:43:39(422 bytes)
created at 2017/10/07 10:22:50
The creation time of this html file is 2017/10/07 11:29:39 (Sat Oct 07 11:29:39 2017).